package com.itheima.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.goods.pojo.Brand;
import entity.PageResult;
import entity.Result;

import java.util.List;

public interface BrandService extends IService<Brand> {
    List<Brand> findAllBrand();

    Result addBrand(Brand brand);

    PageResult<Brand> findAll(Integer currentPage, Integer pageSize, String queryString);
//    PageResult<Brand> findPage(Integer page, Integer size);

    Result deleteBrand(Integer id);

//    Result updateBrand(Brand brand,Integer id);
    Result updateBrand(Integer id,Brand brand);

    Result findById(Integer id);

    Result findPage(Integer page, Integer size);

    Result findPage(Integer page, Integer size, Object searchMap);
}
